package com.clusterswisdom.horn.api.tmall;

import javax.servlet.ServletContext;

import com.clusterswisdom.horn.api.ioc.IChannelInitor;
import com.clusterswisdom.horn.api.tag.ChannelInitor;

@ChannelInitor
public class TmallChannelInitor implements IChannelInitor	 {
	
	@Override
	public void init(ServletContext sc) throws Exception {
		TmallInstance.getInstance().init(sc);
//		startMessageConnector();
	}
	
//	private void startMessageConnector() throws LinkException {
//		Collection<TmallApplication> applicatons = TmallInstance.getInstance().getConfig().getTmallApplications().values();
//		for (TmallApplication tmallApplication : applicatons) {
//			if (tmallApplication.isMonitEvent()) {
//				HornTmcClient client = new HornTmcClient(tmallApplication);
//				client.connect();
//			}
//		}
//	}
}
